home *** CD-ROM | disk | FTP | other *** search
/ Crosscountry USA Photo Safari / Crosscountry USA Photo Safari.iso / Data / cc_base / pak00_16bit_f.pk3 / cell_phone.gl.p < prev    next >
Text File  |  2002-09-24  |  2KB  |  84 lines

  1. {
  2.   X = 355;
  3.   Y = 210;
  4.   Hidden = TRUE;
  5.  
  6.   ScriptID = Script {
  7.     @show {
  8.       GuiToFront(SELF);
  9.     }
  10.   };
  11.   
  12.   ChildID = {
  13.     GuiAnimation("get_rid_of_it") {
  14.       IgnoreTransparency = TRUE;
  15.       ScriptID = script {
  16.         @loaded {
  17.           ResPropSetInt(SELF,"X"     ,-ResPropGetInt(SELF,"ScreenX"));
  18.           ResPropSetInt(SELF,"Y"     ,-ResPropGetInt(SELF,"ScreenY"));
  19.           ResPropSetInt(SELF,"Width" ,CVarGetInt("SCREEN_MAX_X"));
  20.           ResPropSetInt(SELF,"Height",CVarGetInt("SCREEN_MAX_Y"));
  21.         }
  22.         @activate {
  23.           ResPropSetInt(GuiParent(SELF),"Hidden", TRUE);
  24.         }
  25.       }
  26.     },
  27.     GuiAnimation("plate") {
  28.       AnimationID = "gui/dash/cell_phone/cell.pcx";
  29.     },          
  30.     GuiListbox("call_options") {
  31.       X      = 18;
  32.       Y      = 78;
  33.       Height = 50;
  34.       Width  = 70;
  35.       ListHilightedColor = #8BA57F;
  36.       FontID = "font/verdana_9_black.tf";
  37.       ScriptID = Script {
  38.         @loaded {
  39.           ResParseEvent(ResByName("common/country_specific.c4"),"@cell_phone_populate_options");
  40.         }
  41.       };
  42.       StrListID = StrList {
  43.         Size = 128;
  44.       };
  45.       
  46.  
  47.  
  48.     },
  49.  
  50.     GuiAnimation("close_button") {
  51.      /* AnimationID = "gui/dash/cell_phone/close_invisible.pcx"; */
  52.      IgnoreTransparency = TRUE;
  53.       Height = 60;      
  54.       ScriptID = Script {
  55.         @loaded {
  56.           ResPropSetInt(SELF,"Width",ResPropGetInt(GuiSiblingByName("plate"), "Width"));
  57.         }
  58.         @activate {
  59.           ResPropSetInt(GuiParent(SELF),"Hidden",TRUE);
  60.         }
  61.       };
  62.     },
  63.  
  64.     GuiAnimation("call_button") {
  65.       /* AnimationID = "gui/dash/cell_phone/close_invisible.pcx"; */
  66.       IgnoreTransparency = TRUE;
  67.       Y = 135;
  68.       ScriptID = Script {
  69.         @loaded {
  70.           resid plate_id;
  71.           plate_id = GuiSiblingByName("plate");
  72.           ResPropSetInt(SELF,"Width",ResPropGetInt(plate_id, "Width"));
  73.           ResPropSetInt(SELF,"Height",ResPropGetInt(plate_id, "Height") - ResPropGetInt(SELF,"Y"));
  74.         }
  75.  
  76.         @activate {       
  77.           /* this code has been moved to the game specific common folder */
  78.           ResParseEvent(ResByName("common/country_specific.c4"),"@cell_phone_make_call");
  79.         }
  80.       };
  81.     }
  82.   };
  83. }
  84.